package com.gdyx.app.web.model;

import java.io.Serializable;

public class MpsFunOpt implements Serializable{
    private String id = "";
    private String funId = "";
    private String name = "";
    private String href = "";
    private String iconCls = "";
    private String descr = "";
    private long sort = 99999;
    private Integer status = 0;
    private String createTime = "";
    private String createOwner = "";
    private String modifyTime = "";
    private String modifyOwner = "";

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFunId() {
        return funId;
    }

    public void setFunId(String funId) {
        this.funId = funId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public long getSort() {
        return sort;
    }

    public void setSort(long sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateOwner() {
        return createOwner;
    }

    public void setCreateOwner(String createOwner) {
        this.createOwner = createOwner;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyOwner() {
        return modifyOwner;
    }

    public void setModifyOwner(String modifyOwner) {
        this.modifyOwner = modifyOwner;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MpsFunOpt mpsFunOpt = (MpsFunOpt) o;

        if (sort != mpsFunOpt.sort) return false;
        if (id != null ? !id.equals(mpsFunOpt.id) : mpsFunOpt.id != null) return false;
        if (funId != null ? !funId.equals(mpsFunOpt.funId) : mpsFunOpt.funId != null) return false;
        if (name != null ? !name.equals(mpsFunOpt.name) : mpsFunOpt.name != null) return false;
        if (href != null ? !href.equals(mpsFunOpt.href) : mpsFunOpt.href != null) return false;
        if (iconCls != null ? !iconCls.equals(mpsFunOpt.iconCls) : mpsFunOpt.iconCls != null) return false;
        if (descr != null ? !descr.equals(mpsFunOpt.descr) : mpsFunOpt.descr != null) return false;
        if (status != null ? !status.equals(mpsFunOpt.status) : mpsFunOpt.status != null) return false;
        if (createTime != null ? !createTime.equals(mpsFunOpt.createTime) : mpsFunOpt.createTime != null) return false;
        if (createOwner != null ? !createOwner.equals(mpsFunOpt.createOwner) : mpsFunOpt.createOwner != null)
            return false;
        if (modifyTime != null ? !modifyTime.equals(mpsFunOpt.modifyTime) : mpsFunOpt.modifyTime != null) return false;
        return modifyOwner != null ? modifyOwner.equals(mpsFunOpt.modifyOwner) : mpsFunOpt.modifyOwner == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (funId != null ? funId.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (href != null ? href.hashCode() : 0);
        result = 31 * result + (iconCls != null ? iconCls.hashCode() : 0);
        result = 31 * result + (descr != null ? descr.hashCode() : 0);
        result = 31 * result + (int) (sort ^ (sort >>> 32));
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (createOwner != null ? createOwner.hashCode() : 0);
        result = 31 * result + (modifyTime != null ? modifyTime.hashCode() : 0);
        result = 31 * result + (modifyOwner != null ? modifyOwner.hashCode() : 0);
        return result;
    }
}